#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
	int n, m, num = 0, sum, i;
	while (1) {
		sum = 0;
		m = scanf("%d", &n);
		if (m == EOF)
			break;
		for (i = 0; i < n; i++) {
			scanf("%d", &num);
			sum += num;
		}
		printf("%d\n", sum);
	}
	return 0;
}